package com.agileboot.domain.airport.dashboard.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "首页统计信息对象", description = "用于首页展示检查、整改等核心指标")
public class SirStatisticsDTO {

    @ApiModelProperty(value = "指标名称", example = "本月检查数量")
    private String name;

    @ApiModelProperty(value = "当前值", example = "150")
    private Integer value;

    @ApiModelProperty(value = "环比变化百分比", example = "+25%")
    private String percent;

    @ApiModelProperty(value = "当年月度数据数组", example = "[100, 120, 110, 130, 150, 0, 0, 0, 0, 0, 0, 0]")
    private List<Integer> data;

    public SirStatisticsDTO(String name, Integer value, String percent, List<Integer> data) {
        this.name = name;
        this.value = value;
        this.percent = percent;
        this.data = data;
    }
}